#ifndef ITYW_CMTD_TCPCLIENT_H
#define ITYW_CMTD_TCPCLIENT_H

#include "tcp_common.h"

extern "C"
{
#ifndef TCPCLT_API
#define TCPCLT_API extern "C" __declspec(dllexport)
#endif
}

TCPCLT_API int __stdcall TC_Init();
TCPCLT_API int __stdcall TC_UnInit();
TCPCLT_API int __stdcall TC_RegisterModule(cmtd::SERVER_INFO, cmtd::REGISTER_PARAMETER_PTR, 
	void (__stdcall *msg_callback)(cmtd::MESSAGE_INFO), void *);
TCPCLT_API int __stdcall TC_UnRegisterModule(cmtd::UNREGISTER_PARAMETER);
TCPCLT_API int __stdcall TC_Fetch(cmtd::FETCH_PARAMETER);
TCPCLT_API int __stdcall TC_Post(cmtd::POST_PARAMETER);
TCPCLT_API int __stdcall TC_Finish(cmtd::FINISH_PARAMETER);
TCPCLT_API int __stdcall TC_GetLastError();
TCPCLT_API int __stdcall TC_SetMessageCallback(cmtd::MESSAGE_CALLBACK_PARAMETER);


#endif